package test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wuhui on 2016/8/8.
 */
@RestController
public class Main {
    @Autowired
    private Service service;

    @RequestMapping("/")
    @ResponseBody
    String home() {
        return service.test();
    }

    public static void main(String[] args) throws Exception {
        SpringApplication springApplication = new SpringApplication();
        springApplication.run(Main.class,args);
    }

}
